package com.itxiaoz.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Teao
 * @CreateTime: 2024-04-16  00:24
 * @Description:
 */
@RestController
@RequestMapping("/user")
@RefreshScope
public class UserController {
    @Value("${itdupan.jwt.cookieName}")
    private String name;

    @GetMapping
    public String getStr() {
        return "获取配置中心数据：" + name;
    }
}
